﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.SilverlightMediaFramework.Core;

namespace OntoWPFSilverlight.Widget
{
    [OntoWPFSilverlight.Annotation.Widget("VideoViewer")]
    public class VideoViewer : Widget.MediaViewer
    {

        TextBox label;

        public VideoViewer() : base()
        {
            Build();
        }

        private void Build()
        {
            SMFPlayer player = new SMFPlayer();
            label = new TextBox();
            label.Text = "Video Viewer";
            label.TextAlignment = TextAlignment.Center;
            label.IsReadOnly = true;
            //DockPanel.SetDock(this, Dock.Top);
            //this.LastChildFill = true;
            DockPanel.SetDock(label, Dock.Top);
            DockPanel.SetDock(player, Dock.Top);
            this.Children.Add(label);
            this.Children.Add(player);
        }


    }
}
